<?php

namespace App\Admin\Controllers;
use App\Http\Controllers\Controller;

class CommonController extends Controller
{
    public function filter($data){
        $d = [];
        foreach ($data as $key=>$value){
            $d[$value['id']] =  $value['name'];
        }
        return $d;
    }
}
